﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ingineria_prog
{
    class MiniFactory:AbstractCarFactory
    {
        static private AbstractCarFactory myobj = null;
        private MiniFactory() { }

      static  public AbstractCarFactory getMiniFactory()
        {

            if (myobj == null)
                myobj = new MiniFactory();

            return myobj;
        }

      public Car getMini()
      {
          Car c1 = new Mini();
          return c1;
      }

    }
}
